﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace dzs.Web.qualitysked2
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int qid=(Convert.ToInt32(strid));
					ShowInfo(qid);
				}
			}
		}
		
	private void ShowInfo(int qid)
	{
		dzs.BLL.qualitysked2 bll=new dzs.BLL.qualitysked2();
		dzs.Model.qualitysked2 model=bll.GetModel(qid);
		this.lblqid.Text=model.qid.ToString();
		this.lblspotunit.Text=model.spotunit;
		this.lblprojectname.Text=model.projectname;
		this.lblsupplier.Text=model.supplier;
		this.lblproductname.Text=model.productname;
		this.lblptype.Text=model.ptype;
		this.lblwinbatch.Text=model.winbatch;
		this.lblwinnum.Text=model.winnum.ToString();
		this.lblproductdw.Text=model.productdw;
		this.lblspottype.Text=model.spottype;
		this.lblspotnum.Text=model.spotnum.ToString();
		this.lblspotcontent.Text=model.spotcontent;
		this.lblprojectunit.Text=model.projectunit;
		this.lblspotopinion.Text=model.spotopinion;
		this.lblplandate.Text=model.plandate.ToString();
		this.lbluid.Text=model.uid.ToString();
		this.lblqresult.Text=model.qresult;

	}


    }
}
